<?php
/**
 ** cm
 **
 **/
class lookups
{
  private $foo;
  private $bar;
  private $jgirlactive;
  private $generalcategory;
  private $girlfriend;
  private $cherry;
  private $bodytype;
  private $schoollevel;
  private $nationality;
  private $societyplace;
  private $profession;
  private $boyfriend;
  private $kids;
  private $drinker;
  private $smoker;
  private $residencetype;
  private $livewith;
  private $willtomeet;
  private $myjob;
  private $webformmail;
  private $pckeitai;
  private $aliasorigin;
  private $homecell;
  private $nanpasetting;
  private $nanpasublocation;
  private $nanpapickupline;
  private $nanpaimpression;
  private $locationsubject;
  private $locationregion;
  private $locationprefecture;
  private $locationarea;
  private $locationcity;
  private $trainstation;
  private $trainline;
  private $dateintimacy;
  private $datebar;
  private $datealcohol;
  private $datewordgame;
  private $datepurikura;
  private $datepretext;
  private $datenextpretext;
  private $overseasreason;
  private $overseastime;
  private $overseasregion;
  private $overseascountry;
  private $sellingpoint;
  private $compatibility;
  private $hobby;
  private $siteaccess;
  private $adgenre;
  private $bloodtype;
  private $haircolor;
  private $hairlength;
  private $englishability;
  private $car;
  private $wealth;
  private $whotreats;
  private $relheight;
  private $relweight;
  private $idealtype;
  private $idealheight;
  private $idealbodytype;

  function __construct($jgirlid) {
    global $dbObj;
    $jgirlactive = $dbObj->Execute("SELECT * FROM lookup_jgirlactive");
    $generalcategory = $dbObj->Execute("SELECT * FROM lookup_generalcategory");
    $girlfriend = $dbObj->Execute("SELECT * FROM lookup_girlfriend");
    $cherry = $dbObj->Execute("SELECT * FROM lookup_cherry");
    $bodytype = $dbObj->Execute("SELECT * FROM lookup_bodytype");
    $schoollevel = $dbObj->Execute("SELECT * FROM lookup_schoollevel");
    $nationality = $dbObj->Execute("SELECT * FROM lookup_nationality");
    $societyplace = $dbObj->Execute("SELECT * FROM lookup_societyplace");
    $profession = $dbObj->Execute("SELECT * FROM lookup_profession");
    $boyfriend = $dbObj->Execute("SELECT * FROM lookup_boyfriend");
    $kids = $dbObj->Execute("SELECT * FROM lookup_kids");
    $drinker = $dbObj->Execute("SELECT * FROM lookup_drinker");
    $smoker = $dbObj->Execute("SELECT * FROM lookup_smoker");
    $residencetype = $dbObj->Execute("SELECT * FROM lookup_residencetype");
    $livewith = $dbObj->Execute("SELECT * FROM lookup_livewith");
    $willtomeet = $dbObj->Execute("SELECT * FROM lookup_willtomeet");
    $myjob = $dbObj->Execute("SELECT * FROM lookup_myjob");
    $webformmail = $dbObj->Execute("SELECT * FROM lookup_webformmail");
    $pckeitai = $dbObj->Execute("SELECT * FROM lookup_pckeitai");
    $aliasorigin = $dbObj->Execute("SELECT * FROM lookup_aliasorigin");
    $homecell = $dbObj->Execute("SELECT * FROM lookup_homecell");
    $nanpasetting = $dbObj->Execute("SELECT * FROM lookup_nanpasetting");
    $nanpasublocation = $dbObj->Execute("SELECT * FROM lookup_nanpasublocation");
    $nanpapickupline = $dbObj->Execute("SELECT * FROM lookup_nanpapickupline");
    $nanpaimpression = $dbObj->Execute("SELECT * FROM lookup_nanpaimpression");
    $locationsubject = $dbObj->Execute("SELECT * FROM lookup_locationsubject");
    $locationregion = $dbObj->Execute("SELECT * FROM lookup_locationregion");
    $locationprefecture = $dbObj->Execute("SELECT * FROM lookup_locationprefecture");
    $locationarea = $dbObj->Execute("SELECT * FROM lookup_locationarea");
    $locationcity = $dbObj->Execute("SELECT * FROM lookup_locationcity");
    $trainstation = $dbObj->Execute("SELECT * FROM lookup_trainstation");
    $trainline = $dbObj->Execute("SELECT * FROM lookup_trainline");
    $dateintimacy = $dbObj->Execute("SELECT * FROM lookup_dateintimacy");
    $datebar = $dbObj->Execute("SELECT * FROM lookup_datebar");
    $datealcohol = $dbObj->Execute("SELECT * FROM lookup_datealcohol");
    $datewordgame = $dbObj->Execute("SELECT * FROM lookup_datewordgame");
    $datepurikura = $dbObj->Execute("SELECT * FROM lookup_datepurikura");
    $datepretext = $dbObj->Execute("SELECT * FROM lookup_datepretext");
    $datenextpretext = $dbObj->Execute("SELECT * FROM lookup_datenextpretext");
    $overseasreason = $dbObj->Execute("SELECT * FROM lookup_overseasreason");
    $overseastime = $dbObj->Execute("SELECT * FROM lookup_overseastime");
    $overseasregion = $dbObj->Execute("SELECT * FROM lookup_overseasregion");
    $overseascountry = $dbObj->Execute("SELECT * FROM lookup_overseascountry");
    $sellingpoint = $dbObj->Execute("SELECT * FROM lookup_sellingpoint");
    $compatibility = $dbObj->Execute("SELECT * FROM lookup_compatibility");
    $hobby = $dbObj->Execute("SELECT * FROM lookup_hobby");
    $siteaccess = $dbObj->Execute("SELECT * FROM lookup_siteaccess");
    $adgenre = $dbObj->Execute("SELECT * FROM lookup_adgenre");
    $bloodtype = $dbObj->Execute("SELECT * FROM lookup_bloodtype");
    $haircolor = $dbObj->Execute("SELECT * FROM lookup_haircolor");
    $hairlength = $dbObj->Execute("SELECT * FROM lookup_hairlength");
    $englishability = $dbObj->Execute("SELECT * FROM lookup_englishability");
    $car = $dbObj->Execute("SELECT * FROM lookup_car");
    $wealth = $dbObj->Execute("SELECT * FROM lookup_wealth");
    $whotreats = $dbObj->Execute("SELECT * FROM lookup_whotreats");
    $relheight = $dbObj->Execute("SELECT * FROM lookup_relheight");
    $relweight = $dbObj->Execute("SELECT * FROM lookup_relweight");
    $idealtype = $dbObj->Execute("SELECT * FROM lookup_idealtype");
    $idealheight = $dbObj->Execute("SELECT * FROM lookup_idealheight");
    $idealbodytype = $dbObj->Execute("SELECT * FROM lookup_idealbodytype");
  }

  function assign_lookups() {
    global $smarty;
    $inputfields = array(
      "jgirlactive" => array("title"=>"Status", "nick"=>"jgirlactive", "ref"=>$jgirlactive->GetAssoc()->GetAssoc(), "flag"=>1, "position"=>1),
      "generalcategory" => array("title"=>"Category", "nick"=>"generalcategory", "ref"=>$generalcategory->GetAssoc(), "flag"=>1, "position"=>2),
      "girlfriend" => array("title"=>"Girlfriend", "nick"=>"girlfriend", "ref"=>$girlfriend->GetAssoc(), "flag"=>1, "position"=>3),
      "cherry" => array("title"=>"Virginity", "nick"=>"cherry", "ref"=>$cherry->GetAssoc(), "flag"=>1, "position"=>4),
      "bodytype" => array("title"=>"Body Type", "nick"=>"bodytype", "ref"=>$bodytype->GetAssoc(), "flag"=>1, "position"=>5),
      "schoollevel" => array("title"=>"Schooling", "nick"=>"schoollevel", "ref"=>$schoollevel->GetAssoc(), "flag"=>1, "position"=>6),
      "nationality" => array("title"=>"Nationality", "nick"=>"nationality", "ref"=>$nationality->GetAssoc(), "flag"=>1, "position"=>7),
      "societyplace" => array("title"=>"Occupation", "nick"=>"societyplace", "ref"=>$societyplace->GetAssoc(), "flag"=>1, "position"=>8),
      "profession" => array("title"=>"Profession", "nick"=>"profession", "ref"=>$profession->GetAssoc(), "flag"=>1, "position"=>9),
      "boyfriend" => array("title"=>"Boyfriend", "nick"=>"boyfriend", "ref"=>$boyfriend->GetAssoc(), "flag"=>1, "position"=>10),
      "kids" => array("title"=>"Kids", "nick"=>"kids", "ref"=>$kids->GetAssoc(), "flag"=>1, "position"=>11),
      "drinker" => array("title"=>"Drinker", "nick"=>"drinker", "ref"=>$drinker->GetAssoc(), "flag"=>1, "position"=>12),
      "smoker" => array("title"=>"Smoker", "nick"=>"smoker", "ref"=>$smoker->GetAssoc(), "flag"=>1, "position"=>13),
      "residencetype" => array("title"=>"Residence", "nick"=>"residencetype", "ref"=>$residencetype->GetAssoc(), "flag"=>1, "position"=>14),
      "livewith" => array("title"=>"Lives with", "nick"=>"livewith", "ref"=>$livewith->GetAssoc(), "flag"=>1, "position"=>15),
      "willtomeet" => array("title"=>"Wants to meet", "nick"=>"willtomeet", "ref"=>$willtomeet->GetAssoc(), "flag"=>1, "position"=>16),
      "myjob" => array("title"=>"My job", "nick"=>"myjob", "ref"=>$myjob->GetAssoc(), "flag"=>1, "position"=>17),
      "firstname" => array("title"=>"First name", "nick"=>"firstname", "ref"=>0, "flag"=>2, "position"=>18),
      "lastname" => array("title"=>"Last name", "nick"=>"lastname", "ref"=>0, "flag"=>2, "position"=>19),
      "firstfurigana" => array("title"=>"Furigana first", "nick"=>"firstfurigana", "ref"=>0, "flag"=>2, "position"=>20),
      "lastfurigana" => array("title"=>"Furigana last", "nick"=>"lastfurigana", "ref"=>0, "flag"=>2, "position"=>21),
      "birthday" => array("title"=>"Birthday (YYYY.MM.DD)", "nick"=>"birthday", "ref"=>0, "flag"=>2, "position"=>22),
      "birthdate" => array("title"=>"Birthdate (DD)", "nick"=>"birthdate", "ref"=>0, "flag"=>2, "position"=>23),
      "birthmonth" => array("title"=>"Birthmonth (MM)", "nick"=>"birthmonth", "ref"=>0, "flag"=>2, "position"=>24),
      "birthyear" => array("title"=>"Birthyear (YYYY)", "nick"=>"birthyear", "ref"=>0, "flag"=>2, "position"=>25),
      "age" => array("title"=>"Her Age", "nick"=>"age", "ref"=>0, "flag"=>2, "position"=>26),
      "myage" => array("title"=>"My Age", "nick"=>"myage", "ref"=>0, "flag"=>2, "position"=>27),
      "keitaitouroku" => array("title"=>"Keitai memory number", "nick"=>"keitaitouroku", "ref"=>0, "flag"=>2, "position"=>28),
      "schoolyear" => array("title"=>"School year", "nick"=>"schoolyear", "ref"=>0, "flag"=>2, "position"=>29),
      "fuckedday" => array("title"=>"IGS Timestamp", "nick"=>"fuckedday", "ref"=>0, "flag"=>2, "position"=>30),
      "firstcontact" => array("title"=>"First contact timestamp", "nick"=>"firstcontact", "ref"=>0, "flag"=>2, "position"=>31)
    );
	$smarty->assign('inputfield', $inputfields);
    return;
  }
}

?>
